package rte;

import java.util.List;

import dao.XMLLoader;
import dto.THPair;
import edu.smu.tspell.wordnet.NounSynset;
import edu.smu.tspell.wordnet.Synset;
import edu.smu.tspell.wordnet.SynsetType;
import edu.smu.tspell.wordnet.WordNetDatabase;

public class RTEMainPipeline {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		XMLLoader xl = new XMLLoader();
		List<THPair> list = xl.load("data/RTE3_dev_3ways.xml");
		
		WordNetDatabase database = WordNetDatabase.getFileInstance();
		Synset[] synsets = database.getSynsets("fly", SynsetType.NOUN); 
		for (int i = 0; i < synsets.length; i++) { 
			NounSynset nounSynset = (NounSynset)(synsets[i]); 
			NounSynset[] hyponyms = nounSynset.getHyponyms(); 
		    System.err.println(nounSynset.getWordForms()[0] + 
		            ": " + nounSynset.getDefinition() + ") has " + hyponyms.length + " hyponyms"); 
		}
	}

}
